/*******************************************************************************
 * 名称: openDocument
 * 功能: 打开文档
 * 输入: sURL 打开文档的action地址
 * 输出: 无
 * 返回: 无
 ******************************************************************************/
function openDocument(sURL)
{  
  var t_path = window.location.pathname;
 
  t_path = t_path.substring(0, t_path.indexOf('/', 1));
  if(t_path.indexOf('/') != 0) 
  { 
    t_path='/' + t_path;
  }
  //2007-7-10 bpm6.2 �ĵ���֧�ֶ��ĵ������ع�
  var t_random = (Math.random()+"").substring(2);
  g_tools.openWin(t_path+"/jsp/commons/loading.jsp", t_random, 500, 300,null,false);

  var oForm = document.createElement("FORM");
  document.body.appendChild(oForm);
  
  oForm.action = sURL;
  oForm.target = t_random;
  oForm.method = "post";
  oForm.submit();
  
  document.body.removeChild(oForm);
}